package com.victor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.victor.dao_pic.PicDao;
import com.victor.entity.Picturebook;
import com.victor.service.PicService;

@Service
public class PicServiceImpl implements PicService {

	@Autowired
	private PicDao picDao;

	// 通过绘本名模糊查询绘本列表
	@Override
	public List<Picturebook> getPicturebooksByPicname(String picname) {
		return picDao.getPicturebooksByPicname(picname);
	}

	// 通过pid查询picbook书名和作者
	@Override
	public Picturebook getPicturebookById(String pid) {
		return picDao.getPicturebookById(pid);
	}
}
